package com.yun.algorithmproblem.leetcode;

public class Leetcode326 {

    public static void main(String[] args) {
        Leetcode326 obj = new Leetcode326();
        int n = 27;
        System.out.println(obj.isPowerOfThree(n));
    }

    public boolean isPowerOfThree(int n) {
        return n > 0 && 1162261467 % n == 0;
    }
}
